package xunhuan;



public class Demo9 {
	public static void main(String[] args) {
		int i = 1900,c=0;
		while(i<2017){
			if(i%4==0&&i%100!=0||i%400==0){
				System.out.print(i+"  ");
				c++;
			}
			i++;
		}
		System.out.println("\n共有"+c+"个瑞年");


	}
}